package com.jsu.dao;

import java.util.List;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.orm.hibernate5.support.HibernateDaoSupport;

import com.jsu.domain.Product;

public class ProductDAO extends HibernateDaoSupport implements IProductDAO {
	private static final Logger LOG = LogManager.getLogger(ProductDAO.class);

	@Override
	public List<Product> findAll() {
		LOG.debug("in findAll, dao: " + this);
		return getHibernateTemplate().loadAll(Product.class);
	}
}
